package com.jiutong.meipengdai.http.model.services;

import com.jiutong.meipengdai.common.Constants;
import com.jiutong.meipengdai.entity.BaseRespond;
import com.jiutong.meipengdai.entity.EvaluateRespond;
import com.jiutong.meipengdai.entity.HouseDetailBean;
import com.jiutong.meipengdai.entity.LoanDetailBean;
import com.jiutong.meipengdai.entity.MyloanBean;
import com.jiutong.meipengdai.entity.ToApplyLoanRespond;

import java.util.HashMap;
import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by suxi on 2017/5/31.
 */

public interface LoanRelaService {

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<EvaluateRespond> autoAuth(@FieldMap Map<String, Object> fields);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<BaseRespond> loanApply(@FieldMap Map<String, Object> fields);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<ToApplyLoanRespond> toLoanApply(@FieldMap Map<String, Object> fields);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<MyloanBean> loanRecord(@FieldMap Map<String, Object> fields);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<LoanDetailBean> loanDetail(@FieldMap HashMap<String, Object> fieldsMap);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<HouseDetailBean> getHouseDetail(@FieldMap HashMap<String, Object> fieldsMap);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<LoanDetailBean> repayList(@FieldMap HashMap<String, Object> fieldsMap);

    @FormUrlEncoded
    @POST(Constants.URLEND)
    Observable<BaseRespond> applyDay(@FieldMap HashMap<String, Object> map);
}
